#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <algo.h>

#ifdef MAIN
#define minus_test main
#endif
#endif
int minus_test(int, char**)
{
  cout<<"Results of minus_test:"<<endl;
#ifndef ACORN_CFRONT
int input1 [4] = { 1, 5, 7, 8 };
int input2 [4] = { 1, 4, 8, 3 };
#else
static int input1 [4] = { 1, 5, 7, 8 };
static int input2 [4] = { 1, 4, 8, 3 };
#endif

  int output [4];
  transform(input1, input1 + 4, input2, output, minus<int>());
  for(int i = 0; i < 4; i++)
    cout << output[i] << endl;
  return 0;
}
